package com.wry.wry_test.algorithm;

import com.wry.wry_test.utils.FileTypeUtil;

/**
 * @Author: wangrongyi
 * @Date: 2024/10/8 10:38
 * @Description:
 */
public class FileTypeRecognize {
    public static void main(String[] args) {

        String filePath = "E:\\学习文档\\study-notes\\编程书籍\\Apache Tomcat 的云原生演进.pdf";
        String filePath2 = "E:\\学习文档\\study-notes\\自己写的\\asset\\image-20230702211902240.png";
        String filePath3 = "E:\\工作文档\\data\\接口文档.openapi.zip";
        String filePath4 = "C:\\Users\\97519\\Documents\\TencentMeeting\\2024-10-16 14.26.47\\meeting_quick_record.mp4";
        String filePath5 = "C:\\Users\\97519\\Documents\\TencentMeeting\\2024-10-16 14.30.44\\meeting_quick_record.mp4";

        System.out.println(FileTypeUtil.getFileType(filePath5));

//        switch (FileTypeUtil.getFileType(filePath4)) {
//            case JPG:
//                System.out.println("JPG");
//                break;
//            case PNG:
//                System.out.println("PNG");
//                break;
//            default:
//                System.out.println("未知类型");
//        }
    }
}
